<%-- 
    Document   : search_results
    Created on : 02.06.2009, 13:12:15
    Author     : Вадим
--%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>jForum | Поиск сообщений</title>
        <link rel="stylesheet" href="css/my.css" type="text/css">
        <script type="text/javascript" src="js/nicetitle.js"></script>
    </head>
    <body>
        <c:import url="header.jsp"></c:import>
        <center><h2>Найденные сообщения</h2>
        <table border="2">
            <tr class="up"><td>Id</td><td>Текст</td><td>Имя пользователя</td><td>Время создания</td>
            <td>Действие</td></tr>
            <c:forEach var="m" begin="0" items="${requestScope.messages}">
                <tr class="main">
                    <td><a href="ViewMessage.perform?id=${m.ID}">${m.ID}</a></td><td><c:out value="${m.text}"/></td>
                <td><a href="ViewProfile.perform?id=${m.user.ID}">${m.user.login}</a></td><td>${m.time}</td>
                <td><a href="ViewPostForm.perform?id=${m.ID}">Ответить</a></td>
                </tr>
            </c:forEach>
        </table>
        </center>
    </body>
</html>
